/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "订单详情表",TableName = "order_detail")]
    public partial class order_detail:BaseEntity
    {
        /// <summary>
       ///订单详情表ID
       /// </summary>
       [Key]
       [Display(Name ="订单详情表ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long order_detail_id { get; set; }

       /// <summary>
       ///订单表ID
       /// </summary>
       [Display(Name ="订单表ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long order_id { get; set; }

       /// <summary>
       ///订单商品ID
       /// </summary>
       [Display(Name ="订单商品ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long goods_id { get; set; }

       /// <summary>
       ///商品名称
       /// </summary>
       [Display(Name ="商品名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string goods_name { get; set; }

       /// <summary>
       ///购买商品数量
       /// </summary>
       [Display(Name ="购买商品数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int goods_cnt { get; set; }

       /// <summary>
       ///购买商品单价
       /// </summary>
       [Display(Name ="购买商品单价")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal goods_price { get; set; }

       /// <summary>
       ///仓库ID
       /// </summary>
       [Display(Name ="仓库ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long pw_id { get; set; }

       /// <summary>
       ///最后修改时间
       /// </summary>
       [Display(Name ="最后修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime modified_time { get; set; }

       /// <summary>
       ///商铺id
       /// </summary>
       [Display(Name ="商铺id")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long shop_id { get; set; }

       
    }
}